size=$(stat -c%s "s1.bin")
size=$(echo "(( $size + 511 ) / 512)" | bc)
nasm boot_sect.asm -o boot_sect.bin -f bin \
	-DSTAGE1_SECT_COUNT=$size \
	-DSTAGE1_SECT_OFFSET=0x1 \
	-DSTAGE1_START=0x8000
./sign.pl boot_sect.bin
echo $size > s1_size
